<div class="boxUser">
	<div class="userItem">
    	<div class="userRequest">
        	<div class="fullName"><h2>{$objUser->fullnamevn}{if $objUser->fullhouseid > 0}<span class="family">{$intPartnerId|ouser}</span>{/if}</h2></div>
        	<ul>
            	{if $AppUI->id == $objUser->id && $objUser->id > 0 && $AppUI->id > 0}
                	<li>
                    	<a href="{$smarty.const.LINK_ACCOUNT_COVER}"><img src="{$smarty.const.HOST_STATICS}img/btn/edit-cover.gif" width="112" height="26" border="0" alt="{$smarty.const.DOMAIN_NAME}:{$objUser->fullnamevn|escape},bia ho so,tim ban,ket than,ket noi,cong dong viet" /></a>
                    </li>	
                	<li><a href="{$smarty.const.LINK_ACCOUNT_BASIC}"><img src="{$smarty.const.HOST_STATICS}img/btn/edit-profile.gif" width="98" height="26" border="0" alt="{$smarty.const.DOMAIN_NAME}:{$objUser->fullnamevn|escape},chinh sua ho so,tim ban,ket than,ket noi,cong dong viet" /></a></li>
               	{else}
                    <li>
                        <a href="javascript:;" class="requestA">Yêu cầu</a>
                        <ul>
                            <li class="firstChild">
                                <a href="{if $AppUI->id <= 0}{$smarty.const.LINK_INDEX_LOGIN}{else}javascript:;{/if}" {if $AppUI->id > 0}onclick="javascript:message({$objUser->hex});"{/if}><strong class="reMessage">Nhắn tin</strong></a>
                            </li>
                            <li>
                                <a href="{if $AppUI->id <= 0}{$smarty.const.LINK_INDEX_LOGIN}{else}{$smarty.const.LINK_PRODUCT}?targetid={$objUser->hex}{/if}"><strong class="reGift">Tặng quà</strong></a>
                            </li>
                            {if $smarty.const.FUNCTION_GIVE_VON}
                                <li>
                                    <a href="{if $AppUI->id <= 0}{$smarty.const.LINK_INDEX_LOGIN}{else}javascript:;{/if}" {if $AppUI->id > 0}onclick="javascript:giveVon({$objUser->hex});"{/if}><strong class="reVon">Tặng VON</strong></a>
                                </li>
                            {/if}
                            <li>
                                <a href="{if $AppUI->id <= 0}{$smarty.const.LINK_INDEX_LOGIN}{else}javascript:;{/if}" {if $AppUI->id > 0}onclick="javascript:giveLike({$objUser->hex});"{/if}><strong class="reLike">Chia sẻ yêu thương</strong></a>
                            </li>
                            {if $relationType < 6}
                                <li>
                                    <a href="{if $AppUI->id <= 0}{$smarty.const.LINK_INDEX_LOGIN}{else}javascript:addBlacklist({$objUser->hex});{/if}"><strong class="reBlacklist">Từ chối nhận tin</strong></a>
                                </li>
                            {/if}
                            <li>
                                <a href="{if $AppUI->id <= 0}{$smarty.const.LINK_INDEX_LOGIN}{else}javascript:report({$objUser->hex},0,3){/if}"><strong class="reReport">Báo vi phạm</strong></a>
                            </li>
                            {if $relationType > 1 && $relationType < 6}
                                <li>
                                    <a href="{if $AppUI->id <= 0}{$smarty.const.LINK_INDEX_LOGIN}{else}javascript:cancelFriend({$objUser->hex},1);{/if}"><strong class="reCancelFriend">Thôi làm bạn</strong></a>
                                </li>
                            {/if}
                            {if $relationType > 5 && $relationType < 8}
                                <li>
                                    <a href="{if $AppUI->id <= 0}{$smarty.const.LINK_INDEX_LOGIN}{else}javascript:cancelFriend({$objUser->hex},2);{/if}"><strong class="reCancelLover">Đề nghị chia tay</strong></a>
                                </li>
                            {/if}
                            {if $relationType > 7 && $relationType < 11}
                                <li>
                                    <a href="{if $AppUI->id <= 0}{$smarty.const.LINK_INDEX_LOGIN}{else}javascript:cancelFriend({$objUser->hex},3);{/if}"><strong class="reDivorce">Ly hôn</strong></a>
                                </li>
                            {/if}
                            {if $relationType == 13}
                                <li>
                                    <a href="{if $AppUI->id <= 0}{$smarty.const.LINK_INDEX_LOGIN}{else}javascript:cancelFriend({$objUser->hex},3);{/if}"><strong class="reCancelDivorce">Hủy đề xuất LY HÔN</strong></a>
                                </li>
                            {/if}
                        </ul>
                    </li>                    
                    <li>                	
                    	{if $AppUI->id <= 0}
                            <a href="{$smarty.const.LINK_INDEX_LOGIN}"><img src="{$smarty.const.HOST_STATICS}img/btn/like.jpg" width="73" height="26" border="0" alt="{$smarty.const.DOMAIN_NAME} - Đánh dấu yêu thích hồ sơ {$objUser->fullnamevn}" /></a>
                        {else}
                            {if $checkLike}
                                <img src="{$smarty.const.HOST_STATICS}img/btn/like-disable.gif" width="73" height="26" border="0" alt="{$smarty.const.DOMAIN_NAME} - Đánh dấu yêu thích hồ sơ {$objUser->fullnamevn}" />
                            {else}
                                <a href="{$smarty.const.HOST_VFRIEND}fullhouse/like?userid={$objUser->hex}&amp;token={$strToken|secret:"fullhouse"}"><img src="{$smarty.const.HOST_STATICS}img/btn/like.jpg" width="73" height="26" border="0" alt="{$smarty.const.DOMAIN_NAME} - Đánh dấu yêu thích hồ sơ {$objUser->fullnamevn}" /></a>
                            {/if}
                        {/if}
                   	</li>
                    {include file="$ROOT_DIR/library/Vfriend/Plugins/Tpl/box-friend.tpl" type=1}                    
              	{/if}
            </ul>
        </div>
        <div class="userInfo">
        	{if $objUcover}
            	<div class="covers">{if $objUcover.ex_path}{image path=$objUcover.ex_path type=6 small=1}{else}{image path=$objUcover.image type=6 small=1}{/if}</div>
            {/if}
            <div class="info">              			
        		{image userid=$objUser->id type=1 small=1 viewid=$AppUI->id class="border130 lFloat"}
                {if $objUser->fullhouseid > 0}
                	{image userid=$intPartnerId viewid=$AppUI->id type=1 small=1 class="border100 lFloat"}
                {/if}
           	</div>
        </div>
        <div class="userLink{if $strController == "fullhouse" && $strAction == "pdetail"} noBd{/if}">
        	<ul>
            	<li><a href="{vfriend_username userid=$objUser->id viewid=$objUser->id}" {if $strController == "fullhouse" && $strAction == "index"}class="active"{/if}>Full-house</a></li>
                <li><a href="{fullhouse_inform hex=$objUser->hex username=$objUser->username}" {if $strController == "fullhouse" && $strAction == "inform"}class="active"{/if}>Thông tin</a></li>
                <li><a href="{fullhouse_fortune hex=$objUser->hex username=$objUser->username}" {if $strController == "fullhouse" && $strAction == "fortune"}class="active"{/if}>Tài sản</a></li>
                <li><a href="{fullhouse_photo hex=$objUser->hex username=$objUser->username}" {if $strController == "fullhouse" && ($strAction == "photo" || $strAction == "album" || $strAction == "pdetail")}class="active"{/if}>Hình ảnh</a></li>
                <li><a href="{fullhouse_friend hex=$objUser->hex username=$objUser->username}" {if $strController == "fullhouse" && $strAction == "friend"}class="active"{/if}>Bạn bè</a></li>
                <li><a href="{blog_username userid=$objUser->id}" {if $strController == "blog" && $strAction=="user"}class="active"{/if}>Nhật ký</a></li>
                <li><a href="{fullhouse_behaviour hex=$objUser->hex username=$objUser->username}" {if $strController == "fullhouse" && $strAction == "behaviour"}class="active"{/if}>Hoạt động</a></li>
            </ul>
        </div>
    </div>
</div>
<script type="text/javascript" language="javascript" src="{$smarty.const.HOST_STATICS}js/library/user.js?{$smarty.const.JS_UPDATE}"></script>
